package com.letfox.finance.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.finance.dao.OutcomeDetailDao;
import com.letfox.finance.model.FINOutcomeDetail;
import com.letfox.finance.service.OutcomeDetailService;
@Service
public class OutcomeDetailServiceImpl implements OutcomeDetailService {
	@Autowired
	private OutcomeDetailDao outcomeDetailoDao;

	
	@Override
	public int deleteById(String finOutcomeId) {
		
		return outcomeDetailoDao.deleteByPrimaryKey(finOutcomeId);
	}

	@Override
	public int save(FINOutcomeDetail finOutcomeDetail) {
		
		return outcomeDetailoDao.insertSelective(finOutcomeDetail);
	}

	@Override
	public FINOutcomeDetail selectById(String finOutcomeId) {
		
		return outcomeDetailoDao.selectByPrimaryKey(finOutcomeId);
	}

	@Override
	public int update(FINOutcomeDetail finOutcomeDetail) {
		
		return outcomeDetailoDao.updateByPrimaryKeySelective(finOutcomeDetail);
	}

}
